package com.zhentao.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhentao.dto.product.ProductDto;
import com.zhentao.entity.product.Product;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
* @author Lenovo
* @description 针对表【product(商品)】的数据库操作Mapper
* @createDate 2024-09-02 20:32:22
* @Entity com.zhentao.pojo.Product
*/
public interface ProductMapper extends BaseMapper<Product> {

    Page<Product> findByPage(@Param("page") Page<Product> page,@Param("productDto") ProductDto productDto);

    void save(Product product);

    Product findById(Long id);
}




